package net.oschina.zbus;
/**
 * 
{
    "dest_url": "http://git.oschina.net/api/v3/projects/532/issues?private_token=sXMJZfzzZ8sbHLydwjAL", 
    "dest_body": {
        "assignee_id": 42, 
        "description": "issue内容", 
        "id": 532, 
        "issue_id": 0, 
        "labels": "enhancement,", 
        "milestone_id": 0, 
        "title": "issue标题"
    }, 
    "token_url": "http://oschina.net/action/git_token/createIssue", 
    "fail_retry": true, 
    "retry_count": 5, 
    "fail_log": true
}

 * 
 * @author 洪磊明(rushmore)
 *
 */
public class Request {
	private String dest_url; //目标地址
	private String dest_body; //目标信息，JSON格式
	private String token_url; //回调地址
	private boolean fail_retry = true; //失败是否重试，默认true,
	private int retry_count; //重试次数
	private boolean fail_log; //失败记录，默认true
	
	public String getDest_url() {
		return dest_url;
	}
	public void setDest_url(String dest_url) {
		this.dest_url = dest_url;
	}
	public String getDest_body() {
		return dest_body;
	}
	public void setDest_body(String dest_body) {
		this.dest_body = dest_body;
	}
	public String getToken_url() {
		return token_url;
	}
	public void setToken_url(String token_url) {
		this.token_url = token_url;
	}
	public boolean isFail_retry() {
		return fail_retry;
	}
	public void setFail_retry(boolean fail_retry) {
		this.fail_retry = fail_retry;
	}
	public int getRetry_count() {
		return retry_count;
	}
	public void setRetry_count(int retry_count) {
		this.retry_count = retry_count;
	}
	public boolean isFail_log() {
		return fail_log;
	}
	public void setFail_log(boolean fail_log) {
		this.fail_log = fail_log;
	}
	@Override
	public String toString() {
		return "Request [dest_url=" + dest_url + ", dest_body=" + dest_body
				+ ", token_url=" + token_url + ", fail_retry=" + fail_retry
				+ ", retry_count=" + retry_count + ", fail_log=" + fail_log
				+ "]";
	}
	
	
}



